<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.CreateRegTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.CreateRegLabel_idReg}" for="idReg" />
                    <h:inputText id="idReg" value="#{regController.selected.idReg}" title="#{bundle.CreateRegTitle_idReg}" required="true" requiredMessage="#{bundle.CreateRegRequiredMessage_idReg}"/>
                    <h:outputLabel value="#{bundle.CreateRegLabel_dateReg}" for="dateReg" />
                    <h:inputText id="dateReg" value="#{regController.selected.dateReg}" title="#{bundle.CreateRegTitle_dateReg}" required="true" requiredMessage="#{bundle.CreateRegRequiredMessage_dateReg}">
                        <f:convertDateTime pattern="MM/dd/yyyy" />
                    </h:inputText>
                    <h:outputLabel value="#{bundle.CreateRegLabel_libReg}" for="libReg" />
                    <h:inputText id="libReg" value="#{regController.selected.libReg}" title="#{bundle.CreateRegTitle_libReg}" required="true" requiredMessage="#{bundle.CreateRegRequiredMessage_libReg}"/>
                    <h:outputLabel value="#{bundle.CreateRegLabel_capReg}" for="capReg" />
                    <h:inputText id="capReg" value="#{regController.selected.capReg}" title="#{bundle.CreateRegTitle_capReg}" required="true" requiredMessage="#{bundle.CreateRegRequiredMessage_capReg}"/>
                    <h:outputLabel value="#{bundle.CreateRegLabel_verReg}" for="verReg" />
                    <h:inputText id="verReg" value="#{regController.selected.verReg}" title="#{bundle.CreateRegTitle_verReg}" required="true" requiredMessage="#{bundle.CreateRegRequiredMessage_verReg}"/>
                    <h:outputLabel value="#{bundle.CreateRegLabel_caplReg}" for="caplReg" />
                    <h:inputText id="caplReg" value="#{regController.selected.caplReg}" title="#{bundle.CreateRegTitle_caplReg}" required="true" requiredMessage="#{bundle.CreateRegRequiredMessage_caplReg}"/>
                    <h:outputLabel value="#{bundle.CreateRegLabel_verlReg}" for="verlReg" />
                    <h:inputText id="verlReg" value="#{regController.selected.verlReg}" title="#{bundle.CreateRegTitle_verlReg}" required="true" requiredMessage="#{bundle.CreateRegRequiredMessage_verlReg}"/>
                    <h:outputLabel value="#{bundle.CreateRegLabel_liblReg}" for="liblReg" />
                    <h:inputText id="liblReg" value="#{regController.selected.liblReg}" title="#{bundle.CreateRegTitle_liblReg}" required="true" requiredMessage="#{bundle.CreateRegRequiredMessage_liblReg}"/>
                    <h:outputLabel value="#{bundle.CreateRegLabel_nomUsr}" for="nomUsr" />
                    <h:inputText id="nomUsr" value="#{regController.selected.nomUsr}" title="#{bundle.CreateRegTitle_nomUsr}" required="true" requiredMessage="#{bundle.CreateRegRequiredMessage_nomUsr}"/>
                </h:panelGrid>
                <br />
                <h:commandLink action="#{regController.create}" value="#{bundle.CreateRegSaveLink}" />
                <br />
                <br />
                <h:commandLink action="#{regController.prepareList}" value="#{bundle.CreateRegShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:link outcome="/index" value="#{bundle.CreateRegIndexLink}"/>
            </h:form>
        </ui:define>
    </ui:composition>

</html>
